using RedPoint.Runtime;
using UnityEditor.IMGUI.Controls;

namespace Framework.RedPoint.Editor {
    /// <summary>
    /// 红点树视图条目
    /// </summary>
    public class ReddotTreeViewItem : TreeViewItem
    {
        private PointNode _pointNode;
    
    
        public ReddotTreeViewItem(int id, PointNode pointNode)
        {
            base.id = id;
        
            _pointNode = pointNode;
        }

        public override string displayName
        {
            get
            {
                return $"{_pointNode.FullPath} : 【节点值为{_pointNode.Value}】【孩子个数为{_pointNode.ChildrenCount}】";
            }
        }
    }
}

